package com.cg.conf.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Author: pep7chiao
 * @Description: 分页查询结果封装
 * @Date: 2023/11/2 11:21
 */
@Data
@ApiModel(value = "分页基础类", description = "分页基础类")
public class PageVO<T> {
    @ApiModelProperty(value = "页数 默认为0")
    private Long current = 0L;

    @ApiModelProperty(value = "条数 默认为10")
    private Long size = 10L;

    @ApiModelProperty(value = "总条数")
    private Long total;

    @ApiModelProperty(value = "总页数")
    private Long pages;

    @ApiModelProperty(value = "统一数据")
    private List<T> records;
}
